# -*- coding: utf-8 -*-
from django.conf.urls import url
from rest_framework import routers

from django_package.application.views import user_view
from django_package.application.views.async_task_view import AsyncTaskView
from django_package.application.views.model_view import (
    DataFrameModelViewSet, ExampleModelViewSet, TableView,
)
from django_package.application.views.blocking_view import BlockingView
from django_package.application.views.user_view import UserView

urlpatterns = [

]

# 路由
router = routers.DefaultRouter()

router.register(r'df', DataFrameModelViewSet, 'DataFrameModelViewSet')
router.register(r'example', ExampleModelViewSet, 'ExampleModelViewSet')
router.register(r'table', TableView, 'TableView')
router.register(r'user', UserView, '用户视图')
router.register(r'blocking', BlockingView, '阻塞视图')
router.register(r'async_task', AsyncTaskView, '异步任务视图')

urlpatterns += router.urls
